package xyz.lne.researchgroupmanage.service;

import xyz.lne.researchgroupmanage.controller.response.KeywordResponse;
import xyz.lne.researchgroupmanage.entity.KeywordResearch;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.lne.researchgroupmanage.service.dataTransferObject.ResearchSimpleDTO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author team7
 * @since 2021-01-19
 */
public interface KeywordResearchService extends IService<KeywordResearch> {

    /**
     * @param keywordList
     * @return List<ResearchSimpleDTO>
     * 通过关键词获取课题的简要信息
     */
    List<ResearchSimpleDTO> findResearchSimpleByKeywords(List<String> keywordList);

    /**
     * 删除课题-关键词表中关于本课题的信息
     * @param researchId
     * @return
     */
    Boolean deleteKeywordByResearchId(Integer researchId);


    /**
     * 向指定课题中插入关键词，成功返回true
     * @param keywordId
     * @param researchId
     * @return
     */
    Boolean insertKeyword(Integer keywordId,Integer researchId);


}
